<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>

        <title><if condition="$detail.title neq ''">{$detail.title} - <else/><if condition="$cat.title neq ''">{$cat.title} - </if></if><if condition="$ctitle neq ''">{$ctitle} - </if> {$config.ctitle}</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="keywords"<if condition="$detail.keywords neq ''">content="{$detail.keywords}"<else/>content="{$config.keywords}"</if>>
            <meta name="description"<if condition="$detail.description neq ''">content="{$detail.description}"<else/>content="{$config.description}"</if>>
                <meta http-equiv="X-UA-Compatible" content="IE=edge" />
                <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
                <link href="__PUBLIC__/images/favicon.ico" rel="shortcut icon" type="image/x-icon" />
                <link rel="stylesheet" type="text/css" href="__APP__/Application/{$Think.MODULE_NAME}/Public/css/base.css" />
                <link rel="stylesheet" type="text/css" href="__APP__/Application/{$Think.MODULE_NAME}/Public/css/common.css" />
                <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/common.css" />
                <link rel="stylesheet" type="text/css" href="__APP__/Application/{$Think.MODULE_NAME}/Public/css/main.css" />
                <link href="__APP__/Application/{$Think.MODULE_NAME}/Public/css/commonAdmin.css" rel="stylesheet" type="text/css" />
                <script src="__PUBLIC__/js/jquery/jquery.js" type="text/javascript"></script>
                 <script src="__PUBLIC__/js/common.js" type="text/javascript"></script>
                <script src="__APP__/Application/{$Think.MODULE_NAME}/Public/js/common.js" type="text/javascript"></script>
                <script type="text/javascript" src="__APP__/Application/{$Think.MODULE_NAME}/Public/js/jquery.drag.js"></script>

                <script type="text/javascript">
                    $(function() {
                        var len = $('.login-type').length;
                        var obj = $('#userMenus');
                        if (len == 1) {
                            var obj = $('.login-type');
                        }
                        $('#top_top_user').hover(function() {
                            obj.show();

                        }, function() {
                            obj.hide();
                        })
                    })

                </script>
                </head>
                <body>
                    <div class="filter" id="filter"></div>
                    <div class="filter" id="filter2"></div>
                    <div id ="top">
                        <div id="top_inner">
                            <a class="logo" href="__APP__">
                                <img src="__APP__/{$Think.config.picFile}{$config.logo}" style="margin:2px 0 0"/>
                            </a>
                            <ul class="top_NewNava">

                                <li <if condition="$action eq 'area'">class="active"</if>>
                                    <if condition="$Think.cookie.area gt 0">
                                        <a href="{:U('Area/lists',array('id'=>$sessionAreaId))}">订餐吧</a>
                                        <else/>
                                        <a href="__APP__">订餐吧</a>
                                    </if>
                                </li>
                                <!--                                <li <if condition="$action eq 'Map'">class="active"</if>><a href="{:U('Map/index')}">地图订餐</a></li>-->
                                <li <if condition="$action eq 'gifts'">class="active"</if>><a href="{:U('Gifts/index')}">积分商城</a></li>
                                <!--                            <li <if condition="$action eq 'Login'">class="active"</if>><a href="{:U('Login/index')}">商家加盟</a></li>-->
                                <li <if condition="$action eq 'order' && $mod eq 'find'">class="active"</if>><a href="{:U('Order/find')}">催 单</a></li>                           
                                <li <if condition="$action eq 'say'">class="active"</if>><a href="{:U('Say/index')}">说 说</a></li>
                            </ul>
                            <div id="top_quickmenu" class="quick_menu">
                                <dl>
                                    <if condition="$userid gt 0">
                                        <dd style='padding-right: 4px'>
                                            <a id="top_MyOrderLink" class="MyOrderLink" href="{:U('Cart/lists')}">
                                                美食篮<span id='cartnum'>{$cart_num}</span>份
                                            </a>
                                        </dd>
                                    </if>
                                    <dd id="top_top_user" class="Newaccount">
                                        <if condition="$userid gt 0">
                                            <div class='login_regist'>
                                                <a href="{:U('Member/index')}" class='log_btn regist user_logined UserNickName'>{$username}</a>
                                                <div class='layer_top_account layer_topInfo br4 shadow ' id="userMenus" style="display: none">
                                                    <span class='arrow'></span>
                                                    <ul>
                                                        <li><a href="{:U('Member/index')}" class='top_n1'>我的帐户</a></li>
                                                        <li><a href="{:U('Member/order')}" class='top_n2'>订单中心</a></li>
                                                        <li><a href="{:U('Member/sign')}" class='top_n20'>我的签到</a></li>
                                                        <li><a href="{:U('Index/logout')}" class='top_n4'>退出登录</a></li>
                                                    </ul>
                                                </div>
                                            </div>
                                            <else/>
                                            <div class="login_regist">
                                                <a class="log_btn" href="{:U('Login/index')}">登录</a>
                                                <span>|</span>
                                                <a class="log_btn regist" href="{:U('Reg/index')}">注册</a>
                                                <div class="login-type" style="display: none;">
                                                    <ul>
                                                        <li class="login-type1">
                                                            <a href="{:U('Login/index')}">本站帐号登录</a>
                                                        </li>

                                                        <foreach name="threeLogin" item="row">
                                                            <li class="{$row.cla}">
                                                                <a href="{:U('Index/login',array('type'=>$row['code']))}">{$row.name2}</a>
                                                            </li>
                                                        </foreach>

                                                    </ul>
                                                </div>
                                            </div>
                                        </if>
                                    </dd>
                                </dl>
                            </div>
                            <form action="{:U('Area/search')}" method="get" name="formSearch">
                                <div id="search" class="fr br3" >
                                    <input id="keyword" type="text" name="keyword" value="搜索餐厅、美食" autocomplete="off" onkeydown="getSearchLists(event)" 
                                           onclick="clickInput($(this), '搜索餐厅、美食')" onblur="blurInput($(this), '搜索餐厅、美食')"/>
                                    <a class="serch_btn_a" onclick="document.formSearch.submit()">搜索</a>
                                    <div class="searchRes" id="searchRes"></div>
                                </div>
                            </form>
                        </div>
                    </div>
